import { requestClient } from '#/api/request';

/**
 *  获取大货采购单时间段
 */
async function timeCategoryAllIndex(params: object = {}) {
  return requestClient.get('/admin/goodsTimeCategory/allIndex', params);
}

/**
 *  获取tabs 数量
 */
async function navList(params: object = {}) {
  return requestClient.post('/admin/GoodsPurchaseDetail/navList', params);
}

/**
 *  获取列表
 */
async function GoodsPurchseDetailindex(params: object = {}) {
  return requestClient.get('/admin/ScmGoods/GoodsPurchseDetailindex', params);
}

/**
 *  导出列表
 */
async function GoodsPurchseDetailedit(params: any) {
  return requestClient.post('/admin/ScmGoods/GoodsPurchseDetailedit', params,{responseReturn:'raw'});
}


/**
 *  批量下单
 */
async function v2GoodsPurchaseAdd(params: any) {
  return requestClient.post('/admin/v2.GoodsPurchase/add', params,{responseReturn:'raw'} );
}



export { GoodsPurchseDetailedit, GoodsPurchseDetailindex, navList, timeCategoryAllIndex ,v2GoodsPurchaseAdd}
